package com.chensheng.service;

import com.chensheng.dao.SellerInfoDAO;
import com.chensheng.model.SellerInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 下午 22:51 2018/5/18 0018
 */
@Service
@Slf4j
public class SellerInfoService {

    @Autowired
    private SellerInfoDAO sellerInfoDAO;

    public void save(SellerInfo sellerInfo){
        sellerInfoDAO.insertOne(sellerInfo);
    }

    public SellerInfo findByUserName(String userName) {
        return sellerInfoDAO.selectByUserName(userName);
    }
}
